package top.wbhzx.wangpan.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.wbhzx.wangpan.util.ServiceResult;

/**
 * @author Wang Bohui
 * @version V1.0
 * @description 测试控制器
 * @date 2019-12-23 14:24
 **/
@RestController
@RequestMapping(value = "/test")
public class TestController {
    private static final Logger logger = LoggerFactory.getLogger(TestController.class);

    @PostMapping(value = "/helloWorld")
    public Object helloWorld(){
        try {
        } catch (Exception e) {
            e.printStackTrace();
            logger.error("xxx异常" + e.getMessage(), e);
            return ServiceResult.failure("系统忙，请联系管理员！");
        }
        return ServiceResult.success("helloWorld");
    }
}
